package com.train.pattern.state;

import lombok.Data;
import sun.security.jca.GetInstance;

import java.io.Serializable;

/**
 * @author hugx
 * @PackageName: com.train.pattern.state
 * @ClassName: Student
 * @Description:
 * @date 2021/1/24 12:32
 */

@Data
public class Student implements Serializable {
    private static final long serialVersionUID = -6789373943360897796L;


//    private static final long serialVersionUID = -6789373943360897796L;

    private int id;
    private String userName;

    /**
     * @param a
     * @param b
     * @return
     */
    public Integer sum(int a, int b) {
//        HashMap map;
        //aba
        return a + b;
    }


    public String processingMessage() {
        this.setUserName("abc");
        this.getUserName();
        this.userName ="aaa";
        return null;
    }

    public void processingTimedTasks() {
        this.sum(2, 3);


    }
}
